<!DOCTYPE html>
<!--03.尚硅谷_css2.1_使用定位实现三列布局-->
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
		<!--
			三栏布局要求:
				1.两边固定  当中自适应
				2.当中列要完整显示
			定位布局的缺点: 脱离文档流
		-->
		<style type="text/css">
			
			*{
				margin: 0;
				padding: 0;
			}
			body{
				/*2*left+right*/
				min-width: 600px;
			}
			div{
				height: 100px;
			}
			#left,#right{
				width: 200px;
				background: pink;
			}
			#middle{
				background: deeppink;
				padding: 0 200px;
			}
			#left{
				position: absolute;
				left: 0;
				top: 0;				
			}
			#right{
				position: absolute;
				right: 0;
				top: 0;
			}
		</style>
	</head>
	<body style="position: relative;">
		<div id="left">left</div>
		<div id="middle">middle</div>
		<div id="right">right</div>
	</body>
</html>
